package com.stx.design.facade;

public class Computer {

	private Cpu cpu;
	private Memory memory;
	private Flash flash;
	
	public Computer(){
		cpu = new Cpu();
		memory = new Memory();
		flash = new Flash();
	}
	
	public void start(){
		System.out.println("===========Computer Start1===========");
		cpu.start();
		memory.start();
		flash.start();
		System.out.println("===========Computer Start2===========");
	}
	
	public void shutDown(){
		System.out.println("===========Computer ShutDown1===========");
		cpu.shutDown();
		memory.shutDown();
		flash.shutDown();
		System.out.println("===========Computer ShutDown2===========");
	}
}
